<?php
 $pid = pcntl_fork();
 //pid = -1 创健失败
if($pid == -1){
	die('创健失败');
}

if($pid){
	echo $pid."\r\n";
	echo pcntl_wait($status);
	echo $status;
}else{
	echo '子进程';
}
